<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改流转单')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-sheet-edit" th:object="${circulationSheet}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">合同是否归档：</label>
                <div class="col-sm-8">
                    <input name="contactArchived" th:field="*{contactArchived}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">合同编号：</label>
                <div class="col-sm-8">
                    <input name="contractNumber" th:field="*{contractNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">未回款领报告申请日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="reportApplyDate" th:value="${#dates.format(circulationSheet.reportApplyDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">登记单号：</label>
                <div class="col-sm-8">
                    <input name="registrationNumber" th:field="*{registrationNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">领取报告对应欠款金额：</label>
                <div class="col-sm-8">
                    <input name="getReportOwnAmount" th:field="*{getReportOwnAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">未回款原因：</label>
                <div class="col-sm-8">
                    <input name="notPayReason" th:field="*{notPayReason}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">预计回款时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="estimateMoneyReturnTime" th:value="${#dates.format(circulationSheet.estimateMoneyReturnTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">报告号：</label>
                <div class="col-sm-8">
                    <input name="reportNumber" th:field="*{reportNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">报告邮寄日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="reportMailingDate" th:value="${#dates.format(circulationSheet.reportMailingDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">下单日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="orderDate" th:value="${#dates.format(circulationSheet.orderDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">流转单号：</label>
                <div class="col-sm-8">
                    <input name="sequenceNumber" th:field="*{sequenceNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">委托单位：</label>
                <div class="col-sm-8">
                    <input name="enterprise" th:field="*{enterprise}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">受检单位/项目名称：</label>
                <div class="col-sm-8">
                    <input name="projectName" th:field="*{projectName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">检测方案：</label>
                <div class="col-sm-8">
                    <input name="detectionScheme" th:field="*{detectionScheme}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">合同金额：</label>
                <div class="col-sm-8">
                    <input name="contractAmount" th:field="*{contractAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">金额备注：</label>
                <div class="col-sm-8">
                    <input name="amountRemarks" th:field="*{amountRemarks}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">业务来源：</label>
                <div class="col-sm-8">
                    <input name="transactionSource" th:field="*{transactionSource}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">联系人：</label>
                <div class="col-sm-8">
                    <input name="contact" th:field="*{contact}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电话：</label>
                <div class="col-sm-8">
                    <input name="phoneNumber" th:field="*{phoneNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">检测地址：</label>
                <div class="col-sm-8">
                    <input name="detectionAddressArea" th:field="*{detectionAddressArea}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">检测地址：</label>
                <div class="col-sm-8">
                    <input name="detectionAddressCounty" th:field="*{detectionAddressCounty}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">业务人员：</label>
                <div class="col-sm-8">
                    <input name="businessPeople" th:field="*{businessPeople}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">运营中心：</label>
                <div class="col-sm-8">
                    <input name="operationCenter" th:field="*{operationCenter}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">涉及业务员变动：</label>
                <div class="col-sm-8">
                    <input name="changeOfSalesman" th:field="*{changeOfSalesman}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">运营备注：</label>
                <div class="col-sm-8">
                    <input name="businessComments" th:field="*{businessComments}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">到账时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="paymentDate" th:value="${#dates.format(circulationSheet.paymentDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">单次到账金额：</label>
                <div class="col-sm-8">
                    <input name="oncePaymentAmount" th:field="*{oncePaymentAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">到账合计：</label>
                <div class="col-sm-8">
                    <input name="totalPayment" th:field="*{totalPayment}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">欠款金额：</label>
                <div class="col-sm-8">
                    <input name="amountOwing" th:field="*{amountOwing}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">开票日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="fapiaoDate" th:value="${#dates.format(circulationSheet.fapiaoDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">单次开票金额：</label>
                <div class="col-sm-8">
                    <input name="onceFapiaoAmount" th:field="*{onceFapiaoAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">发票合计：</label>
                <div class="col-sm-8">
                    <input name="totalFapiaoAmount" th:field="*{totalFapiaoAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">财务备注：</label>
                <div class="col-sm-8">
                    <input name="financeNote" th:field="*{financeNote}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">附件：</label>
                <div class="col-sm-8">
                    <input name="attachment" th:field="*{attachment}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/sheet";
        $("#form-sheet-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-sheet-edit').serialize());
            }
        }

        $("input[name='reportApplyDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='estimateMoneyReturnTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='reportMailingDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='orderDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='paymentDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='fapiaoDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>